<template>
  <div style="margin: 30px">
    <el-breadcrumb separator=">">
      <el-breadcrumb-item :to="{ path: '/' }" style="font-size: 16px"><i class="el-icon-s-promotion"></i>首页
      </el-breadcrumb-item>
      <el-breadcrumb-item><a href="/">活动管理</a></el-breadcrumb-item>
    </el-breadcrumb>
    <el-divider></el-divider>


    <el-container>
      <el-header>
        <el-menu
            router
            :default-active="activeIndex2"
            class="el-menu-demo"
            mode="horizontal"
            @select="handleSelect"
            background-color="#545c64"
            text-color="#fff"
            active-text-color="#ffd04b">
          <el-menu-item index="/AdminFreeSpace">空闲车位</el-menu-item>
          <el-menu-item index="/AdminStopHistory">历史停车</el-menu-item>
          <el-submenu index="">
            <template slot="title">用户申述</template>
            <el-menu-item index="/adminAllegaTable">未处理申述</el-menu-item>
            <el-menu-item index="/adminHandleAllegeTable">历史记录</el-menu-item>
          </el-submenu>
          <el-menu-item index="/AdminCount">统计</el-menu-item>
        </el-menu>
      </el-header>
      <el-main class="el-main">
        <router-view/>
      </el-main>
    </el-container>
  </div>

</template>

<script>
export default {
  data() {
    return {
      activeIndex: '1',
      activeIndex2: '1'
    };
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>

<style scoped>

</style>